package com.money.mvp_dagger_simple.application;

        import android.app.Application;

/**
 * Created by Money on 2017/8/25.
 */

public class Mapplication extends Application {

    private static AppComponent appComponent;

    @Override
    public void onCreate() {
        super.onCreate();
        setAppComponent();
    }

    private void setAppComponent(){
        appComponent = DaggerAppComponent.builder()
                .appModule(new AppModule(this))
                .build();
    }

    public static AppComponent getAppComponent(){
        return appComponent;
    }

}
